@import "./window.scss";

.voice-record {
  width: 100%;
  height: 100%;
  display: flex;
  flex-flow: column nowrap;
  &-msg {
    width: 100%;
    height: 50%;
    overflow-y: auto;
  }
  &-action {
    width: 100%;
    height: 50%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
  }
}
.voice-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  .voice-button {
    width: 80px;
    height: 80px;
    background-color: var(--primary);
    border-radius: 50%;
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    &-stop {
      background-color: var(--adm-color-danger);
    }
  }
  .voice-button:hover {
    filter: brightness(0.9);
  }

  .voice-button-icon {
    width: 24px;
    height: 24px;
  }
  .voice-button-txt {
    color: var(--white);
  }
}
.pulse {
  animation: pulse 1s 0.2s ease infinite;
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
